package com.scut.shangxueguan.service;

import com.scut.shangxueguan.pojo.Files;
import com.scut.shangxueguan.pojo.Result;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IFileService {
    Result<List<Files>> uploadFile(MultipartFile[] files);

    Result downloadFile(String fileName, HttpServletResponse response) throws IOException;

    Result deleteFile(String fileName);

    List<Files> getAllFile();
}
